<!--
 * @Description:内容区域
 * @Author: gaoyunpeng
 * @Date: 2022-01-21 22:17:54
 * @LastEditors: gaoyunpeng
-->
<template>
  <section class="app-main">
    <transition name="fade-transform" mode="out-in">
      <keep-alive>
        <router-view :key="key" />
      </keep-alive>
    </transition>
  </section>
</template>

<script>
export default {
  name: 'AppMain',
  computed: {
    key() {
      return this.$route.path
    }
  }
}
</script>

<style lang="scss" scoped>
.app-main {
  position: relative;
  width: 100%;
  height: calc(100% - 100px);
  overflow: hidden;
}
</style>
